﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="select_sucai.aspx.cs" Inherits="MxWeiXinPF.Web.admin.crm.select_sucai" %>


<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>素材图文组</title>

<%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        var api = top.dialog.get(window); //获取父窗体对象

 
        function selectedIco() {

            var selectmodulrvalue = $(".lbl_modulerad").children(".lblUrl").attr("title");

            if (selectmodulrvalue == "") {
                top.dialog({
                    title: '提示',
                    content: '请选择链接！',
                    okValue: '确定',
                    ok: function () { }
                }).showModal(api);
                return false;
            }


            api.close(selectmodulrvalue).remove();
        }


        $(function () {
            //创建图文的窗口 
            $(".selectBtn").click(function () {
               
                var categoryTitle = $(this).attr("title");
                var categoryId = $(this).attr("v");
                 
                var selectmodulrvalue = "";
                selectmodulrvalue = categoryId + "_" + categoryTitle;

             

                api.close(selectmodulrvalue).remove();

                
            })
        })

    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">

        <!--工具栏-->
        <div class="toolbar-wrap">
            <div id="floatHead" class="toolbar">
                <div class="r-list">
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                    
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th align="center" width="10%">编号</th>
                        <th align="center">分类名称</th>
                        <th align="center" width="20%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>

                    <td align="center"><%#Eval("id")%></td>
                    <td align="center">
                        <%#Eval("title")%> 
                    </td>
 
                    <td align="center">
                        <input id="btnSelect" class="selectBtn" type="button" value="选择" v='<%#Eval("id")%>' title='<%#Eval("title")%>' />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"5\">暂无记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->




          <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
